<?php

class MY_Controller extends CI_Controller {
    protected $_data;
    public function __construct() {
        parent::__construct();
        $action = $this->router->fetch_method();
        switch($action) {
            case 'index':
                $action = 'Create';break;
            case 'display':
                $action='list';break;
        }
        $this->_data = array(
            'template'  =>  'template/layout',
            'data' =>  '',
            'data_id' => '',
            'load_page' =>  '',
            'controller' => $this->router->fetch_class(),
            'action' => $action
        );
    }

}